package com.whz.enuminterface;

/**
 * @Author: sinosoft
 * @Description:
 * @Date: Create in 15:49 2021/5/17
 * @Modified By:
 */
public abstract class AbstractOperation implements Operation{
    private final String symbol;

    public AbstractOperation(String symbol) {
        this.symbol = symbol;
    }

    @Override
    public abstract double apply(double x, double y);

    @Override
    public final String toString() {
        return symbol;
    }
}
